import layout from '@/layout/'
const meta = { auth: false }
export default {
    path: '/machine-setting',
    name: 'machine-setting',
    meta,
    redirect: { name: 'machine-setting-index' },
    component: layout,
    children: (pre => [
        {
            path: 'index',
            name: `${pre}index`,
            component: () => import('@/pages/MachineSetting/index'),
            meta: { ...meta, title: '机器设置' }
        },
        {
            path: 'time',
            name: `${pre}time`,
            component: () => import('@/pages/MachineSetting/SettingTime'),
            meta: { ...meta, title: '时间设置' }
        },
        {
            path: 'Warning',
            name: `${pre}Warning`,
            component: () => import('@/pages/MachineSetting/SettingWarning'),
            meta: { ...meta, title: '警示设置' }
        },
        {
            path: 'bluetooth',
            name: `${pre}bluetooth`,
            component: () => import('@/pages/MachineSetting/SettingBlueTooth'),
            meta: { ...meta, title: '蓝牙设置' }
        },
        {
            path: 'display',
            name: `${pre}display`,
            component: () => import('@/pages/MachineSetting/SettingDisplay'),
            meta: { ...meta, title: '显示设置' }
        },
        {
            path: 'boolMachine',
            name: `${pre}boolMachine`,
            component: () => import('@/pages/MachineSetting/SettingBoolMachine'),
            meta: { ...meta, title: '动态血糖仪设置' }
        },
        // {
        //     path: 'day-history',
        //     name: `${pre}day-history`,
        //     component: () => import('@/pages/MachineSetting/DayHistory'),
        //     meta: { ...meta, title: '日总量回顾' }
        // },
        // {
        //     path: 'warning-history',
        //     name: `${pre}warning-history`,
        //     component: () => import('@/pages/MachineSetting/WarningHistory'),
        //     meta: { ...meta, title: '警示记录回顾' }
        // },
    ])('machine-setting-')
}